package KK.Global
{
	import KK.Tip.GlobalTip;
	import KK.net.ProxyManager;
	import KK.net.SocketManager;
	
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	import flash.display.Sprite;

	public class Game 
	{
		static public var LoginAddress:String; 
		static public var LogicAddress:String; 
		static public var OpenID:String;
		
		
		static public var bug:Function;//回调函数 
		
		/**
		 * 显示bug 
		 * @param msg
		 * 
		 */
		static public function BugMSG(msg:String):void{
			bug&&bug(msg);
		}
		
		/**
		 *  
		 * @param msg
		 * 
		 */
		static public function ShowTip(msg:String):void{
			GlobalTip.Instance.ShowMsg(msg);
			
		}
		/**
		 * 按钮tip 
		 * @param button
		 * @param msg
		 * @param x
		 * @param y
		 * 
		 */
		static public function ButtonTip(button:DisplayObjectContainer,msg:String):void{
			GlobalTip.Instance.ButtonTip(button,msg);
		}
		
		
		/**
		 * 消息  
		 * @param id
		 * 
		 */
		static public function OnProcess(id:int):void{
			ProxyManager.OnProgress(id); 
		}
		static public var network:SocketManager=SocketManager.Instance;
	}
}